package cn.yht.wang.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * 用户类
 *
 * create by wangruixiang on 2018/12/12
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel(description = "用户Model")
public class SysUser {

  @ApiModelProperty(value = "用户ID", name = "id",example = "")
  private Long id;

  @NotBlank(message = "用户名不能为空")
  @ApiModelProperty(value = "用户名", name = "username", required = true, example = "liqk")
  private String userName;

  @NotBlank(message = "密码不能为空")
  @ApiModelProperty(value = "密码", name = "password", required = true, example = "123456")
  private String password;

  private  String userEmail;

  private  String userInfo;

  private  byte[] headImg;

  private  Date createTime;

  private List<SysRole> roleList;

}

